package com.orange.cloud.service.inroad.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;
/**
 * null
 * @author majie
 * @date 2021/12/23 22:36
 */
@Data
@TableName("recommend_image")
public class RecommendImageEntity {

    // 主键
    @TableField(value="id" )
    private Long id;

    // 推荐ID
    @TableField(value="recommend_id" )
    private Long recommendId;

    // 图片地址
    @TableField(value="image_scr" )
    private String imageScr;

    // 排序
    @TableField(value="image_sort" )
    private Integer imageSort;

    // 创建时间
    @TableField(value="gmt_create",fill = FieldFill.INSERT )
     @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime gmtCreate;

    // 修改时间
    @TableField(value="gmt_modified" ,fill = FieldFill.INSERT_UPDATE)
     @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime gmtModified;

}
